<?php
namespace Api\Model;
use Think\Model;

class MoodModel extends Model {
	private $_db='';
	public function __construct(){
		$this->_db=M('Mood');
	}
//	获取心晴
	public function getMood(){
		
	}
	
//	新增心晴
	public function insert($data){
		if(!is_array($data) || !$data){
			return 0;
		}
		$data['time'] = time();
		return $this->_db->add($data);
	}
}